﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace 输入输出//命名空间
{
    internal class Program //类
    {
        //输出
        private static void Main1(string[] args)//2方法(函数)
        {
            Console.Write("吃了没!");
            Console.Write("吃了没!");
            Console.Write("吃了没!");

            Console.WriteLine("A");
            Console.WriteLine("B");
        }
        //输入
        private static void Main2(string[] args)
        {
            string s = Console.ReadLine();
            Console.WriteLine(s);
        }

        //练习
        private static void Main(string[] args)
        {
            Console.WriteLine("请输入姓名:");
            string name = Console.ReadLine();
            Console.WriteLine("请输入年龄:");
            string age = Console.ReadLine();

            Console.WriteLine(name + "今年" + age + "岁");
        }
    }
}